package com.yang.scanBean;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class Y {
	@Autowired
	X x;

	public X getX() {
		return x;
	}

	public Y() {
		System.out.println("我是Y的默认构造方法, Y对象被创建了");
	}
}